package com.tech.zhidengxian.controller;

import com.tech.zhidengxian.model.dto.GoodsDTO;
import com.tech.zhidengxian.model.dto.page.MyPage;
import com.tech.zhidengxian.model.dto.result.ReturnResult;
import com.tech.zhidengxian.model.dto.result.ReturnResultUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@RestController
@RequestMapping("/search")
public class SearchController {

    @RequestMapping("/queryRecommendSearchWordList")
    public ReturnResult<List<String>> queryRecommendSearchWordList(){
        String []arr = new String[]{"二手手机","情人节礼物","电脑","羽绒服","电动车","智能穿戴","双肩包"};
        return ReturnResultUtils.returnSuccess(new ArrayList<>(Arrays.asList(arr)));
    }

}
